﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NExplorer
{
	public class MenuCommandInfo<T> : MenuCommandInfo where T : ICommand, new()
	{
		public MenuCommandInfo(string category)
			: base(new T(), category)
		{}
	}

	public class MenuCommandInfo
	{
		private readonly ICommand	_command;
		private readonly string		_category;

		public MenuCommandInfo(ICommand command, string category)
		{
			_command = command;
            _category = category;
		}

		public ICommand Command
		{
			get { return _command; }
		}

		public string Category
		{
			get { return _category; } 
		}
	}
}
